package org.caw.hbase.explorer.filter.model;

/**
 * Node for Filter expression
 * 
 * @author dino.keco
 * 
 */
public class ExpressionNode extends Node {
	private String columnFamily;
	private String qualifier;
	private String value;
	private ComparisonOperator oper;

	public String getColumnFamily() {
		return columnFamily;
	}

	public void setColumnFamily(String columnFamily) {
		this.columnFamily = columnFamily;
	}

	public String getQualifier() {
		return qualifier;
	}

	public void setQualifier(String qualifier) {
		this.qualifier = qualifier;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public ComparisonOperator getOper() {
		return oper;
	}

	public void setOper(ComparisonOperator oper) {
		this.oper = oper;
	}

	@Override
	public String toString() {
		return "(".concat(columnFamily).concat(":").concat(qualifier).concat(oper.getValue()).concat(value).concat(")");
	}
}
